<?php if(count($arr) >= $_CFG['minPesquisa'] || isset($_GET['q'])){ ?>
<div id="pesquisa">
    <div class="t">Pesquisa:</div>
    <div>
        <form id="pesquisa">
            <input type="hidden" name="<?=$pag;?>" />
            <input name="q" id="q" value="<?=$_GET['q'];?>" />
            <img src="<?=URL;?>/gui/css/images/zoom.png" title="Pesquisar" alt="Pesquisar" onClick="if($('#q').val()!=''){$('#pesquisa').submit();}else{$('#q').select();}"/>
            <?php if(isset($_GET['q'])){ ?>
            <img src="<?=URL;?>/gui/css/images/cross.png" title="Limpar Pesquisa" alt="Limpar Pesquisa" onClick="window.location.href='admin.php?<?=$pag;?>'"/>
            <?php } ?>
        </form>
    </div>
</div>
<?php } ?>